﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;
using GCELibrary.Current;

namespace ZF.WS.news
{
    public partial class company : BLL.Page.PageBase
    {
        public Model.AD_Popularize Popularize { get; set; }
       


        [PageArgument(Key = "id", CanNull = false)]
        public int id { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            using (var dc = SiteInfo.CreateDBDataContext())
            {
                var popularize = dc.AD_Popularize.FirstOrDefault(p => p.PopularizeId == id);
                if (popularize == null)
                {
                    throw WarnFactory.CreateWarn(WarnCode.ReocrdNoFind);
                }
                this.Popularize = popularize;


            }
        }
    }
}
